package com.yixin.hospital.entity.dto.req.jobtitle;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("新增职称请求体")
@Data
public class JobTitleAddReqDTO {

    @ApiModelProperty("所属职业id")
    @NotNull(message = "所属职业id")
    private Long jobId;

    @ApiModelProperty("职称名称")
    @NotBlank(message = "职称名称不能为空")
    private String name;
}
